Important: The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s).
The following command enables authentication for an OSPF area defined by the IP address 192.168.100.10 and the OSPF authentication type to MD5:Sets the default cost to be configured for the specified area as an integer from 0 through 16777215.The following command sets the default cost for an OSPF area defined by the IP address 192.168.100.10 to 300:[ no ] area { ipaddress | decimal_value } nssa [ default-information-originate ] [ no-redistribution ] [ no-summary ] [ translate-always ] [ translate-candidate ] [ translate-never ]The following command defines the area designated by the IP address 192.168.100.10 as an NSSA area:The following command defines the OSPF area defined by the IP address 192.168.100.10 as a stub area:The following command creates a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20:[ no ] area { ipaddress | decimal_value } virtual-link router_id_address authentication { message-digest | null | text }The following command sets the authentication method for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20 to use no authentication:area { ipaddress | decimal_value } virtual-link router_id_address authentication-key { encrypted password encrypted_authentication_key | password authentication_key }encrypted_authentication_key is an alphanumeric string of 1 through 523 characters.password authentication_keyThe password to use for authentication. authentication_key is an alphanumeric string of 1 through 16 characters that denotes the authentication password. This variable is entered in clear text format.The following command creates an authentication password of 123456 for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20:[ no ] area { ipaddress | decimal_value } virtual-link router_id_address [ dead-interval value ] [ hello-interval value ] [ retransmit-interval value ] [ transmit-delay value ]dead-interval valueSpecifies The interval (in seconds) that the router should wait, during which time no packets are received and after the router considers a neighboring router to be off-line. value must be an integer from 1 through 65535.hello-interval valueSpecifies the interval (in seconds) before sending a hello packet. value must be an integer from 1 through 65535.retransmit-interval valueSpecifies the interval (in seconds) that router should wait before retransmitting a packet. value must be an integer from 1 through 3600.transmit-delay valueSpecifies the interval (in seconds) that the router should wait before transmitting a packet. value must be an integer from 1 through 3600.The following command sets the retransmit interval for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20 to 60 seconds:area { ipaddress | decimal_value } virtual-link router_id_address message-digest-key key_id md5 { encrypted password encrypted_authentication_key | password authentication_key }message-digest-key key_idSpecifies the key identifier number. key_id must be an integer from 1 through 255.Specifies the use of an encrypted password. encrypted_authentication_key is an alphanumeric string of 1 through 523 characters.password authentication_keySpecifies the password to use for authentication. authentication_key is an alphanumeric string from 1 through 16 characters that is entered in clear text format.The following command enables the use of MD5-based OSPF authentication for a virtual link between the OSPF areas defined by the IP address 192.168.100.10 and the IP address 192.168.200.20, sets the MD5 Key ID to 25, and the password to 123456:default-information originate [ always ] [ metric metric_value ] [ metric-type { 1 | 2 } ] [ route-map route_map_name ]metric metric_value1: Sets the OSPF external link type for default routes to Type 1.2: Sets the OSPF external link type for default routes to Type 2.route-map route_map_namedefault-metric metric_value[ no ] distance { distance_value | ospf { [ external distance_value ] [ inter-area distance_value ] [ intra-area distance_value ] } }external distance_value: Set the OSPF route administrative distance for routes from other routing domains, learned by redistribution. This must be an integer from 1 through 255. The default is 110.inter-area distance_value: sets the OSPF route administrative distance for routes from one routing area to another. This must be an integer from 1 through 255. The default is 110.intra-area distance_value: sets the OSPF route administrative distance for all routes within an area. This must be an integer from 1 through 255. The default is 110.The following command uses the route access list named ral1 to filter outgoing routing updates for all connected routes:vrfvrf_namevrf_name is name of a preconfigured VRF context configured in Context Configuration Mode via the ip vrf command. It is an alphanumeric string of 1 through 63 characters.The following command enables preconfigured VRF context instance ospf_vrf1 for OSPF routing and enters the OSPF VRF Configuration mode:poll-interval poll_interval_valuepriority priority_valueSpecifies the network address and mask as well as the interface on which OSPF will be enabled. network_ip_address in entered in IPv4 dotted-decimal notation, followed by the “/” and the mask (CIDR).The following command specified that the OSPF router will use the interface at IP address 192.168.1.0 with a netmask of 24:ospf graceful-restart { grace-period grace_period | helper { never | policy { only-reload | only-upgrade } } }never: Do not allow helper mode.policy { only-reload | only-upgrade }: Allows ospf graceful-restart helper mode.
• only-reload: Allows ospf graceful-restart helper mode only for a reload.
• only-upgrade: Allows ospf graceful-restart helper mode only for an upgrade.router-id ip_addressSpecifies the router ID for the OSPF process. ip_address is entered using IPv4 dotted-decimal notation.The following command sets the router ID to 192.168.200.1:redistribute { connected | rip | static } [ metric metric_value ] [ metric-type { 1 | 2 } ] [ route-map route_map_name ]metric metric_value1: Sets the OSPF external link type for routes to Type 1.2: Sets the OSPF external link type for routes to Type 2.route-map route_map_nameFilter routes through the specified route map before redistribution. route_map_name specifies the name of the route-map to use as an alphanumeric string of 1 through 79 characters.The following command sets the refresh timer to 90 seconds:The following command sets the router ID to 192.168.200.1:
|
| Cisco Systems Inc. |
| Tel: 408-526-4000 |
| Fax: 408-527-0883 |